package com.kede.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 【请填写作者】
 * @since 2020-04-19
 */
public class Talk implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 序号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发信人
     */
    private String fromagent;

    /**
     * 收信人
     */
    private String toagent;

    /**
     * 创建时间
     */
    private LocalDateTime time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getFromagent() {
        return fromagent;
    }

    public void setFromagent(String fromagent) {
        this.fromagent = fromagent;
    }
    public String getToagent() {
        return toagent;
    }

    public void setToagent(String toagent) {
        this.toagent = toagent;
    }
    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Talk{" +
            "id=" + id +
            ", fromagent=" + fromagent +
            ", toagent=" + toagent +
            ", time=" + time +
        "}";
    }
}
